<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>

<head>
    <base href="<%=basePath%>"/>
    <title>襄阳蓝芯智能化办公系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="view/bootstrap-3.3.5/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="view/bootstrapvalidator/css/bootstrapValidator.css" />
    <script charset="utf-8" src="view/jquery/jquery-1.10.2.min.js"></script>
    <script charset="utf-8" src="view/bootstrap-3.3.5/js/bootstrap.js"></script>
    <script charset="utf-8" src="view/bootstrapvalidator/js/bootstrapValidator.js"></script>
</head>
<body>
<div class="panel-body">
    <table class="table table-hover" id="myTable">

        <tbody>
        <tr>
            <td colspan="4" class="success">资产移动查看</td>
        </tr>
        <tr>
            <td>移动单号</td>
            <td id="docNo">${zcydxq.docNo}</td>
            <td>单据类型</td>
            <td id="doctype">${zcydxq.doctype}</td>
        </tr>
        <tr>
            <td>审批流程</td>
            <td id="flowid">${zcydxq.lcid.flowName}</td>
            <td>移动原因</td>
            <td id="moveReason">${zcydxq.moveReason}</td>
        </tr>
        <tr>
            <td>移动时间</td>
            <td id="moveDate">
                <c:if test="${zcydxq.moveDate==null}">该资产移动申请带通过</c:if>
                <c:if test="${zcydxq.moveDate!=null}">${zcydxq.moveDate}</c:if>
            </td>
            <td>备注</td>
            <td id="remark">${zcydxq.remark}</td>
        </tr>
        <tr>

            <td>创建人</td>
            <td id="creator">${zcydxq.empcj.empName}</td>
            <td>申请人</td>
            <td id="proposer"${zcydxq.empsq.empName}></td>
        </tr>
        <tr>
            <td>申请人部门</td>
            <td id="deptid">${zcydxq.dept.deptName}</td>
            <td>状态</td>
            <td id="status">${zcydxq.status}</td>
        </tr>
        <tr>
            <td>创建日期</td>
            <td id="createDate">${zcydxq.createDate}</td>
            <td>提交日期</td>
            <td id="submitDate">
                <c:if test="${zcydxq.submitDate==null}">该资产移动申请未提交</c:if>
                <c:if test="${zcydxq.submitDate!=null}">${zcydxq.submitDate}</c:if>
            </td>
        </tr>

        <tr>
            <td colspan="4" class="success">移动明细</td>
        </tr>
        <tr>
            <td colspan="4">
                <table id="tab1" class="table table-hover">
                    <thead>
                    <tr>
                        <th class="success">资产名称</th>
                        <th class="success">原地</th>
                        <th class="success">原保管员</th>
                        <th class="success">移动目的地</th>
                        <th class="success">移动时间</th>
                        <th class="success">备注</th>
                    </tr>
                    </thead>
                    <c:forEach items="${zcydxq.zcydmx}" var="mx">
                        <c:if test="${zcydxq.zcydmx!=null}">
                        <tr>
                            <td>${mx.zcAsset.assetNanme}</td>
                            <td>${mx.jcyd.name}</td>
                            <td>${mx.emp.empName}</td>
                            <td>${mx.jcmdd.name}</td>
                            <td>${mx.moveDate}</td>
                            <td>${mx.remark}</td>
                        </tr>
                        </c:if>
                    </c:forEach>
                </table>
            </td>
        </tr>
        </tbody>

    </table>
</div>
</body>
</html>
